import 'GdsCats.dart';

class ClassLeft {
  Object? secordCatId;
  Object? secordCatName;
  Object? catPic;
  List<GdsCats>? gdsCats;

  ClassLeft({this.secordCatId, this.secordCatName, this.catPic, this.gdsCats});

  ClassLeft.fromJson(Map<String, dynamic> json) {
    secordCatId = json['secordCatId'];
    secordCatName = json['secordCatName'];
    catPic = json['catPic'];
    if (json['gdsCats'] != null) {
      gdsCats = <GdsCats>[];
      json['gdsCats'].forEach((v) {
        gdsCats!.add(new GdsCats.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['secordCatId'] = this.secordCatId;
    data['secordCatName'] = this.secordCatName;
    data['catPic'] = this.catPic;
    if (this.gdsCats != null) {
      data['gdsCats'] = this.gdsCats!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}


